//
//  VolunteerservViewController.m
//  WisdomCommunity
//
//  Created by Yahaong on 16/8/8.
//  Copyright © 2016年 zonten. All rights reserved.
//

#import "VolunteerservViewController.h"
#import "ZYFWTableViewCell.h"
@interface VolunteerservViewController ()
@property(nonatomic, copy)NSArray *sources;
@end


static NSString *const kZYFWTableViewCellIdentifier = @"ZYFWTableViewCellIdentifier";
@implementation VolunteerservViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title  = @"志愿服务";
    self.edgesForExtendedLayout = UIRectEdgeNone;
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.tableView registerClass:[ZYFWTableViewCell class] forCellReuseIdentifier:kZYFWTableViewCellIdentifier];
    self.tableView.rowHeight = 60;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return self.sources.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    ZYFWTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kZYFWTableViewCellIdentifier  forIndexPath:indexPath];
    
    cell.imageStr = self.sources[indexPath.row];
    return cell;
}


- (NSArray *)sources
{
    if (!_sources) {
        _sources = @[@"22志愿服务_",@"22志愿服务_",@"22志愿服务_",@"22志愿服务1_",@"22志愿服务1_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_",@"22志愿服务2_"];
    }
    return _sources;
}


@end
